<%--
  Created by IntelliJ IDEA.
  User: zml
  Date: 2021/8/12
  Time: 19:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="static/js/jquery-3.6.0.js"></script>
</head>
<body>
<input type="submit" onclick="ajaxDo()">
<a href="customer/home">aaa</a>
<script>
    function ajaxDo(){
        var array = new Array([1,"蒜蓉大虾",2,80.00,"外卖",0],[1,"虎皮青椒",3,60.00,"到店",0])
        $.ajax({
            url:"detailOrder/insert",
            type:"post",
            // contentType:"application/json;charset=UTF-8",
            // dataType:"json",
            // data:({
            //     listDishOrder:array
            // }),
            success:function (result) {
                alert("成功")
            },
            error:function (err){
                alert("失败:"+toString(err))
            }
        })
    }
</script>
</body>
</html>
